#include "queue.h"

int main(int argc, char *argv[])
{
#if 0
    queue *S = queue_create();
    queue_push(S, 100);
    queue_push(S, 200);
    queue_push(S, 300);

    printf("pop:%d\n", queue_pop(S));
    printf("pop:%d\n", queue_pop(S));
    printf("pop:%d\n", queue_pop(S));
    printf("pop:%d\n", queue_pop(S));
    printf("pop:%d\n", queue_pop(S));

#endif

    queue1 *S = queue_create1();
    queue_push1(S, 100);
    queue_push1(S, 200);
    queue_push1(S, 300);

    printf("pop:%d\n", queue_pop1(S));
    printf("pop:%d\n", queue_pop1(S));
    printf("pop:%d\n", queue_pop1(S));
    printf("pop:%d\n", queue_pop1(S));
    printf("pop:%d\n", queue_pop1(S));

    return 0;
}
